package com.xxq.semester.service.oss;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;

public interface OSSService {
    String uploadFile(MultipartFile file, String folder) throws IOException;

    String uploadFileByUrl(String fileUrl, String folder) throws IOException;

    String uploadFile(InputStream inputStream, String objectKey, String contentType);

    void deleteFile(String objectKey);

    String getFileUrl(String objectKey);
}
